package com.sy.cloud.wechat.entity;

import com.alibaba.fastjson.JSON;

/**
 * Created by zhuwenquan on 2017-10-30.
 */
public class WeChatEntity {
    private String errcode;
    private String errmsg;

    public WeChatEntity() {
    }

    public String toErrorString() {
        return JSON.toJSONString(this);
    }

    public boolean isSuccess() {
        return this.errcode == null || "0".equals(this.errcode);
    }

    public void setErrcode(String errcode) {
        this.errcode = errcode;
    }

    public void setErrmsg(String errmsg) {
        this.errmsg = errmsg;
    }

    public String getErrcode() {
        return this.errcode;
    }

    public String getErrmsg() {
        return this.errmsg;
    }
}
